package cn.kbyue.exceptiondemo.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum CommonResponseEnum implements IResponseEnum {

    /**
     * 公共响应码
     */
    SUCCESS(200, "请求成功"),
    SERVER_ERROR(500, "服务器内部错误"),
    ;

    /**
     * 返回码
     */
    private int code;
    /**
     * 返回消息
     */
    private String message;
}
